package 行为型模式.状态模式.before;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/8 13:27
 */
public interface ILift {
    //定义四个电梯状态的常量
    //开门状态
    public final static int OPENING_STATE = 1;
    //关门状态
    public final static int CLOSING_STATE = 2;
    //运行状态
    public final static int RUNNING_STATE = 3;
    //停止状态
    public final static int STOPPING_STATE = 4;

    //设置电梯状态的功能
    void setState(int state);

    //电梯操作的功能
    void open();

    void close();

    void run();

    void stop();
}
